package com.xiaoba.search.feign;

import com.xiaoba.common.core.domain.Result;
import com.xiaoba.product.domain.SkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author: Gd
 * @package: com.xiaoba.search.feign
 * @Project: XiaoBa
 * @Name: EsFeignService
 * @Date: 2024/5/29 15:34
 */
@FeignClient("xiaoba-product")
public interface EsFeignService {

    @GetMapping("/productInfo/findskuAll/{id}")
    public Result<List<SkuInfo>> findskuAll(@PathVariable("id")Integer id);
}
